package com.wyd.jwpkglxt_ssm.exception;

import com.wyd.jwpkglxt_ssm.util.ResultCode;
import lombok.Data;

//RuntimeException 运行期异常
//Exception 编译器异常
@Data
public class MyException extends RuntimeException{
    private Integer code;
    private String msg;

    public MyException(ResultCode resultCode){
        this.code = resultCode.getCode();
        this.msg = resultCode.getMsg();
    }

}
